PFLAGS += -I./AirQuality -I./CurrentCost -I%T/lib/printf -I./PackState -I./AccessibleBitVector -I./HeatMeter -I./Kalman -I./FilterWrapper -I./EventDetector -I./DEWMA
COMPONENT=CogentHouseC

PFLAGS +=-DTOSH_DATA_LENGTH=118

# turn on leds for debugging?
#CFLAGS += -DBLINKY
#CFLAGS += -DDEBUG

#time out time in seconds
CFLAGS += -DLEAF_TIMEOUT_TIME=10240L

# default sensing period 307200 = 5 mins
CFLAGS += -DDEF_FIRST_PERIOD=10240
CFLAGS += -DDEF_SENSE_PERIOD=307200L
CFLAGS += -DDEF_BACKOFF_SENSE_PERIOD=307200L

CFLAGS += -DLEAF_CLUSTER_HEAD=10L
CFLAGS += -DLEAF_MAX_RETRIES=3
CFLAGS += -DHEARTBEAT_PERIOD=89 #7 hours

CFLAGS += -DSIP  -DDEWMA #-DKALMAN
CFLAGS += -DSIP_TEMP_THRESH=0.25
CFLAGS += -DSIP_TEMP_ALPHA=0.2
CFLAGS += -DSIP_TEMP_BETA=0.2

CFLAGS += -DSIP_HUM_THRESH=1.
CFLAGS += -DSIP_HUM_ALPHA=0.1
CFLAGS += -DSIP_HUM_BETA=0.1

CFLAGS += -DSIP_CO2_THRESH=100.
CFLAGS += -DSIP_CO2_ALPHA=0.2
CFLAGS += -DSIP_CO2_BETA=0.2

CFLAGS += -DSIP_AQ_THRESH=0.1
CFLAGS += -DSIP_AQ_ALPHA=0.05
CFLAGS += -DSIP_AQ_BETA=0.05

CFLAGS += -DSIP_VOC_THRESH=100.
CFLAGS += -DSIP_VOC_ALPHA=0.05
CFLAGS += -DSIP_VOC_BETA=0.05

include $(MAKERULES)


